package com.xhwl.centiotdata.action.pedestrian;

import com.xhwl.common.dto.auth.PedestrianAuthDTO;
import com.xhwl.common.enums.OperationTypeEnum;
import com.xhwl.common.pojo.ResultJson;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RequestPart;
import org.springframework.web.bind.annotation.RestController;

/**
 * @Author： lianghz
 * @Description：
 * @Date 2021/09/07/ 11:43
 */
@RestController
public interface IPedestrianAuth {

    @RequestMapping(value = "/pedestrian-auth/operate", method = RequestMethod.POST)
    ResultJson authorize(@RequestPart("pedestrianAuthDTO") PedestrianAuthDTO pedestrianAuthDTO, @RequestPart("operationType") OperationTypeEnum operationType);

    @RequestMapping(value = "/pedestrian-auth/sync", method = RequestMethod.POST)
    ResultJson syncAuthorize(@RequestPart("pedestrianAuthDTO") PedestrianAuthDTO pedestrianAuthDTO);

}
